package com.yuantong.xyerp.core.api.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("区域完整信息，含省市区，不包含街道")
public class AreaFullVo {
    @ApiModelProperty("区域所在省code")
    private String provinceCode;
    @ApiModelProperty("区域所在省名称")
    private String provinceName;
    @ApiModelProperty("区域所在市code")
    private String cityCode;
    @ApiModelProperty("区域所在市名称")
    private String cityName;
    @ApiModelProperty("区域所在区code")
    private String districtCode;
    @ApiModelProperty("区域所在区名称")
    private String districtName;

    @Override
    public String toString() {
        return (provinceName == null ? "" : provinceName)
                + (cityName == null ? "" : cityName)
                + (districtName == null ? "" : districtName);
    }
}
